package com.gxa.ehome.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.sql.Timestamp;

public class SysUser implements Serializable {
    private Integer id;
    private String job_number;
    private String avatar;
    private String name;
    private String password;
//    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp created_date;
    private String formatDate;
    private String tel;

    private Long company_id;
    private Byte type;
    private String id_card;
    private Boolean visible;

    public SysUser(){

    }

    public String getFormatDate() {
        return formatDate;
    }

    public void setFormatDate(String formatDate) {
        this.formatDate = formatDate;
    }

    public SysUser(Integer id, String job_number, String avatar, String name, String password, Timestamp created_date, String tel, Long company_id, Byte type, String id_card, Boolean visible) {
        this.id = id;
        this.job_number = job_number;
        this.avatar = avatar;
        this.name = name;
        this.password = password;
        this.created_date = created_date;
        this.tel = tel;
        this.company_id = company_id;
        this.type = type;
        this.id_card = id_card;
        this.visible = visible;
    }

    public SysUser(Integer id, String job_number, String name, Timestamp created_date, String tel, Boolean visible) {
        this.id = id;
        this.job_number = job_number;
        this.name = name;
        this.created_date = created_date;
        this.tel = tel;
        this.visible = visible;
    }

    public Boolean getVisible() {
        return visible;
    }

    public void setVisible(Boolean visible) {
        this.visible = visible;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getJob_number() {
        return job_number;
    }

    public void setJob_number(String job_number) {
        this.job_number = job_number;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Timestamp getCreated_date() {
        return created_date;
    }

    public void setCreated_date(Timestamp created_date) {
        this.created_date = created_date;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Long getCompany_id() {
        return company_id;
    }

    public void setCompany_id(Long company_id) {
        this.company_id = company_id;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public String getId_card() {
        return id_card;
    }

    public void setId_card(String id_card) {
        this.id_card = id_card;
    }

    @Override
    public String toString() {
        return "SysUser{" +
                "id=" + id +
                ", job_number='" + job_number + '\'' +
                ", name='" + name + '\'' +
                ", created_date=" + created_date +
                ", tel='" + tel + '\'' +
                ", visible=" + visible +
                '}';
    }
}
